home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Linux Cubed Series 8: LINUX Games
/
Linux Cubed Series 8 - LINUX Games.iso
/
games
/
x11
/
rpg
/
crossfir.92
/
crossfir
/
crossfire-0.92.5
/
utils
/
crossloop
< prev
next >
Wrap
Text File
|
1996-07-24
|
566b
|
25 lines
#!/bin/sh
#
# This is a replacement for the crosserv.pl perl script.,
# No point in using perl for such a simple task.
CMDNAME="BINDIR/crossfire"
maxrestart=100
logdir="/tmp/crosservlog"
logcount=0
#rm -rf $logdir
#mkdir $logdir
while [ ! "$logcount"x = "$maxrestart"x ]; do
echo "Starting Crossfire `date` for the $logcount time..." 1>$logdir/$logcount 2>&1
$CMDNAME -d -f -server 2>>$logdir/$logcount 1>&2
if [ -f core ] ; then
mv core core.$logcount
/usr/local/bin/gzip core.$logcount
fi
logcount=`expr $logcount + 1`
sleep 5
done